    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
    </head>
    <body>
    <div id="cldBody">
        
                    <div id="top">
                        <span id="left">&lt;</span>
                        <span id="topDate">2020年11月</span>
                        <span id="right">&gt;</span>
                    </div>
    </div>
    <script>
        var topStr = document.getElementById("topDate").innerHTML;
        var pattern = /\d+/g;
        var listTemp = topStr.match(pattern);
        var year = Number(listTemp[0]);
        var month = Number(listTemp[1]);
        console.log(listTemp);
        console.log(year);
        console.log(month);
    </script>
    </body>
    </html>